package com.juzi.wopu.service.impl;

import java.util.List;

import com.juzi.wopu.domain.Department;
import com.juzi.wopu.service.IDepartmentService;

public class DepartmentServiceImpl extends BaseServiceImpl<Department> implements IDepartmentService{

	@SuppressWarnings("unchecked")
	@Override
	public Department findByName(String name) {
		List<Department> list = BaseDao.findByhql("select o from Department o where o.name=?", name);
		return list.size()>0?list.get(0):null;
	}
}
